package com.taru.service.impl;

import com.taru.dao.UserMapper;
import com.taru.model.User;
import com.taru.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class UserServiceImpl implements UserService {
    @Autowired
    UserMapper userMapper;


    @Override
    public User queryUserByOpenId(String openId) {
        return userMapper.queryUserByOpenId(openId);
    }

    @Override
    public int updateUserByOpenId(User user) {
       return userMapper.updateUserByOpenId(user);
    }


    @Override
    public int insertUser(User user) {
        return userMapper.insertUser(user);
    }

    @Override
    public List<User> queryUserInAudit() {
        return userMapper.queryUserInAudit();
    }

}
